// Load Data
use Replication_Data_Dont_Tell_Me_Oct_2020

// Replicate Full Models and Tables
foreach var in votefor personal faster trustsci{

reg `var' i.condition 

eststo `var'

reg `var' i.condition   rep==1

eststo `var'rep

reg `var' i.condition if  ind==1

eststo `var'ind

reg `var' i.condition if  dem==1

eststo `var'dem

esttab `var' using Main_Effects_Tables.rtf, append ///
cells((b(f(2) l(Coef.) star) p(f(3) l(p-value))) se(f(2) par)) ///
label ///
nobaselevel ///
title("`: var label `var'' - Main Effects") ///
note(Note: Cell entries are OLS coefficients with standard errors in parentheses ///
below. Two-tailed p-values are presented in the adjacent column. Coefficients ///
represent the estimated difference in means between the treatment condition and the ///
No Source Baseline condition.) ///
legend ///
coeflabels(_cons "Constant (No Source)") ///
nomtitle ///
nonum ///
varwidth(25) ///
aic bic ///
collabels("Coefficient" "p-value") ///
substitute(Intrusive "Action" Observations "N")


esttab `var' `var'rep `var'ind `var'dem using Replicate_Full_Tables.rtf, append ///
cells((b(f(2) l(Coef.) star) p(f(3) l(p-value))) se(f(2) par)) ///
label ///
nobaselevel ///
title("`: var label `var'' - Main Effects") ///
note(Note: Cell entries are OLS coefficients with standard errors in parentheses ///
below. Two-tailed p-values are presented in the adjacent column. Coefficients ///
represent the estimated difference in means between the treatment condition and the ///
No Source Baseline condition.) ///
legend ///
coeflabels(_cons "Constant (No Source)") ///
mtitle("All" "Rep" "Ind" "Dem") ///
varwidth(25) ///
aic bic ///
collabels("Coefficient" "p-value") ///
substitute(Intrusive "Action" Observations "N")
}
